namespace FrameworkBase.Example
{
    public struct CommandKillEnemy : ICommand
    {
        public void Execute()
        {
            var gameModel = PointGame.Get<IModelGame>();
            
            gameModel.KillCount.Value++;

            if (gameModel.KillCount.Value == 10)
            {
                EventGamePass.Trigger();
            }
        }
    }
}